package net.jueb.sniff4j.extr.auth;

import java.net.InetSocketAddress;

public class User {
	
	private final String name;
	public String passwd;
	private final AddressCollection refuseTargets=new AddressCollection();
	/**
	 * 地址重定向集合
	 */
	private final AddressRedirectCollection targetRedirects=new AddressRedirectCollection();
	
	public User(String name, String passwd) {
		super();
		this.name = name;
		this.passwd = passwd;
	}
	public String getName() {
		return this.name;
	}
	public String getPasswd() {
		return this.passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public AddressCollection getRefuseTargets() {
		return this.refuseTargets;
	}
	public void addRefuseTarget(InetSocketAddress targetAddress)
	{
		this.refuseTargets.add(targetAddress);
	}
	public final AddressRedirectCollection getTargetRedirects() {
		return targetRedirects;
	}
	
}
